NodeInfo

class NodeInfo : GeneratedMessage, MeshProtos.NodeInfoOrBuilder

The bluetooth to device link:
Old BTLE protocol docs from TODO, merge in above and make real docs...
use protocol buffers, and NanoPB
messages from device to phone:
POSITION_UPDATE (..., time)
TEXT_RECEIVED(from, text, time)
OPAQUE_RECEIVED(from, payload, time) (for signal messages or other applications)
messages from phone to device:
SET_MYID(id, human readable long, human readable short) (send down the unique ID
string used for this node, a human readable string shown for that id, and a very
short human readable string suitable for oled screen) SEND_OPAQUE(dest, payload)
(for signal messages or other applications) SEND_TEXT(dest, text) Get all
nodes() (returns list of nodes, with full info, last time seen, loc, battery
level etc) SET_CONFIG (switches device to a new set of radio params and
preshared key, drops all existing nodes, force our node to rejoin this new group)
Full information about a node on the mesh
Protobuf type meshtastic.NodeInfo

Types

Link copied to clipboard
class Builder : GeneratedMessage.Builder<BuilderT> , MeshProtos.NodeInfoOrBuilder

The bluetooth to device link:
Old BTLE protocol docs from TODO, merge in above and make real docs...
use protocol buffers, and NanoPB
messages from device to phone:
POSITION_UPDATE (..., time)
TEXT_RECEIVED(from, text, time)
OPAQUE_RECEIVED(from, payload, time) (for signal messages or other applications)
messages from phone to device:
SET_MYID(id, human readable long, human readable short) (send down the unique ID
string used for this node, a human readable string shown for that id, and a very
short human readable string suitable for oled screen) SEND_OPAQUE(dest, payload)
(for signal messages or other applications) SEND_TEXT(dest, text) Get all
nodes() (returns list of nodes, with full info, last time seen, loc, battery
level etc) SET_CONFIG (switches device to a new set of radio params and
preshared key, drops all existing nodes, force our node to rejoin this new group)
Full information about a node on the mesh
Protobuf type meshtastic.NodeInfo

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getChannel(): Int

local channel index we heard that node on. Only populated if its not the default channel.
uint32 channel = 7;
Link copied to clipboard
Link copied to clipboard
fun getDescriptor(): Descriptors.Descriptor
Link copied to clipboard

The latest device metrics for the node.
.meshtastic.DeviceMetrics device_metrics = 6;
Link copied to clipboard

The latest device metrics for the node.
.meshtastic.DeviceMetrics device_metrics = 6;
Link copied to clipboard
open fun getHopsAway(): Int

Number of hops away from us this node is (0 if direct neighbor)
optional uint32 hops_away = 9;
Link copied to clipboard

True if node is in our favorites list
Persists between NodeDB internal clean ups
bool is_favorite = 10;
Link copied to clipboard
open fun getIsIgnored(): Boolean

True if node is in our ignored list
Persists between NodeDB internal clean ups
bool is_ignored = 11;
Link copied to clipboard

True if node public key has been verified.
Persists between NodeDB internal clean ups
LSB 0 of the bitfield
bool is_key_manually_verified = 12;
Link copied to clipboard
open fun getLastHeard(): Int

Set to indicate the last time we received a packet from this node
fixed32 last_heard = 5;
Link copied to clipboard
open fun getNum(): Int

The node number
uint32 num = 1;
Link copied to clipboard
Link copied to clipboard

This position data. Note: before 1.2.14 we would also store the last time we've heard from this node in position.time, that is no longer true.
Position.time now indicates the last time we received a POSITION from that node.
.meshtastic.Position position = 3;
Link copied to clipboard

This position data. Note: before 1.2.14 we would also store the last time we've heard from this node in position.time, that is no longer true.
Position.time now indicates the last time we received a POSITION from that node.
.meshtastic.Position position = 3;
Link copied to clipboard
Link copied to clipboard
open fun getSnr(): Float

Returns the Signal-to-noise ratio (SNR) of the last received message,
as measured by the receiver. Return SNR of the last received message in dB
float snr = 4;
Link copied to clipboard

The user info for this node
.meshtastic.User user = 2;
Link copied to clipboard

The user info for this node
.meshtastic.User user = 2;
Link copied to clipboard
open fun getViaMqtt(): Boolean

True if we witnessed the node over MQTT instead of LoRA transport
bool via_mqtt = 8;
Link copied to clipboard

The latest device metrics for the node.
.meshtastic.DeviceMetrics device_metrics = 6;
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasHopsAway(): Boolean

Number of hops away from us this node is (0 if direct neighbor)
optional uint32 hops_away = 9;
Link copied to clipboard
open fun hasPosition(): Boolean

This position data. Note: before 1.2.14 we would also store the last time we've heard from this node in position.time, that is no longer true.
Position.time now indicates the last time we received a POSITION from that node.
.meshtastic.Position position = 3;
Link copied to clipboard
open fun hasUser(): Boolean

The user info for this node
.meshtastic.User user = 2;
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
Link copied to clipboard
open fun parseFrom(data: ByteString): MeshProtos.NodeInfo
open fun parseFrom(input: CodedInputStream): MeshProtos.NodeInfo
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): MeshProtos.NodeInfo
Link copied to clipboard
open fun parser(): Parser<MeshProtos.NodeInfo>
Link copied to clipboard
Link copied to clipboard
open fun writeTo(output: CodedOutputStream)